<?php
/**
 * Created by PhpStorm.
 * User: 666
 * Date: 2020/4/6
 * Time: 9:53
 */

namespace App\Model;


use EasySwoole\ORM\AbstractModel;

class MysqlFailLog extends BaseModel
{

    protected $tableName = 'dm_mysql_fail_log';

    protected $autoTimeStamp = true;
    protected $createTime = 'create_at';
    protected $updateTime = 'update_at';


    static function log($msg,$data){

        self::create([
                'msg' => $msg,
                'data_' => json_encode($data),

        ])->save();
    }


}